import java.util.Arrays;

public class Text {
    public static void main(String[] args) {
        int[] array={1,5,7,9,4,6,3,8};
        Arrays.sort(array);
        String ret= Arrays.toString(array);
        System.out.println(ret);
    }
}
